import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
    mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/',
            name: 'home',
            meta: {title: "首页"},
            component: () => import('../views/Home')
        }, {
            path: '/test',
            name: 'home',
            meta: {title: "测试"},
            component: () => import('../views/Test')
        }, {
            path: '/login',
            name: 'login',
            meta: {title: "登陆"},
            component: () => import('../views/Login')
        }
    ]
})
